home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4780 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: francenet.fr!usenet
  2. From: sherlock@micronet.fr
  3. Newsgroups: comp.os.msdos.programmer,comp.lang.c
  4. Subject: Re: open vs fopen?
  5. Date: Wed, 07 Feb 1996 09:04:29 GMT
  6. Organization: Francenet -- Paris, France
  7. Message-ID: <4f8qbg$549@chleuasme.francenet.fr>
  8. References: <uEYFxc9nX8WX083yn@mbnet.mb.ca>
  9. NNTP-Posting-Host: ppp41.micronet.fr
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. natewild@mbnet.mb.ca (Nathan T. Wild) wrote:
  13.  
  14. >In C, why would one use open and DOS int handles rather than fopen and
  15. >stdio file handles?
  16.  
  17. >Is there some speed advantage or differnet functionality?
  18.  
  19. >     
  20.  
  21. >|--------------------------------------------------------------------|
  22. >| ooooO (``)   (``) Ooooo | Nathan T. Wild                           | 
  23. >| (   ) )  (   )  ( (   ) | natewild@mbnet.mb.ca                     |
  24. >| )  (  (   ) (   ) )  (  | ftp://ftp.mbnet.mb.ca/pub/natewild       |
  25. >| (__)  ooooO Ooooo (__)  | http://www.mbnet.mb.ca/~natewild         |
  26. >|--------------------------------------------------------------------|
  27.  
  28.  
  29. because files opened using open and DOS files handles can be read and
  30. write at the same time, while stdio files can't.
  31.  
  32. suppose you have a database file, with fixed length fields.
  33. low level functions(open...) enable the writing of some records and
  34. the reading of other without closing the file.
  35.  
  36.  
  37.